#!/bin/bash

if [ "$#" != "1" ]; then
    echo "please give a string as argument"
    exit
fi

text=$1

nc -N -kl -p 3398 > /dev/dsp & 

ssh -p 53722 -q -R '3399:127.0.0.1:3398' ssh2.intenect.com "cd /d/zhang/BTSync/GIT/SIE/2023-2024第一学期/slides/00-Introduction; ./anim2.sh \"${text}\"; exit"

kill $(ps |grep /bin/nc |awk '{print $1}')
